﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Venture_Info.aspx.cs" Inherits="LongQuanWeb.Admin.Venture_Info" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />

    <script language="Javascript" type="text/javascript">

        function FCKeditor_OnComplete(editorInstance) {
            //editorInstance.Events.AttachEvent( 'OnStatusChange', editor_keydown) ;
            var oEditor = FCKeditorAPI.GetInstance('txtContent1');
            var oEditor2 = FCKeditorAPI.GetInstance('txtContent2');
            var oEditor3 = FCKeditorAPI.GetInstance('txtContent3');
            oEditor.EditorDocument.body.onkeyup = function() {
                $("ShowTextLength").innerHTML = oEditor.EditorDocument.body.innerHTML.length;
                if (oEditor.EditorDocument.body.innerHTML.length > 90 || oEditor2.EditorDocument.body.innerHTML.length > 90 || oEditor3.EditorDocument.body.innerHTML.length > 90) {
                    document.getElementById('btn_save').disabled = true;
                }
                else {
                    document.getElementById('btn_save').disabled = false;
                }
                //$("ddd").value = oEditor.EditorDocument.body.innerHTML;
            }
            oEditor2.EditorDocument.body.onkeyup = function() {
                $("ShowTextLength2").innerHTML = oEditor2.EditorDocument.body.innerHTML.length;
                if (oEditor.EditorDocument.body.innerHTML.length > 90 || oEditor2.EditorDocument.body.innerHTML.length > 90 || oEditor3.EditorDocument.body.innerHTML.length > 90) {
                    document.getElementById('btn_save').disabled = true;
                }
                else {
                    document.getElementById('btn_save').disabled = false;
                }
                //$("ddd").value = oEditor.EditorDocument.body.innerHTML;
            }
            oEditor3.EditorDocument.body.onkeyup = function() {
                $("ShowTextLength3").innerHTML = oEditor3.EditorDocument.body.innerHTML.length;
                if (oEditor.EditorDocument.body.innerHTML.length > 90 || oEditor2.EditorDocument.body.innerHTML.length > 90 || oEditor3.EditorDocument.body.innerHTML.length > 90) {
                    document.getElementById('btn_save').disabled = true;
                }
                else {
                    document.getElementById('btn_save').disabled = false;
                }

                //$("ddd").value = oEditor.EditorDocument.body.innerHTML;
            }

        }

        function $(id) { return document.getElementById(id) }

    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="gv_css" cellspacing="1" cellpadding="3" width="96%" align="center">
        <tr>
            <td class="UserTableRow2" width="33%" colspan="3">
                联盟章程：<span class="red">(限90字以内)</span> 已经输入<asp:Label runat="server" ID="ShowTextLength">0</asp:Label>
                个字符<br>
                <FCKeditorV2:FCKeditor ID="txtContent1" runat="server" ToolbarSet="Basic" BasePath="~/fckeditor/"
                    Height="200">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="UserTableRow2" width="33%" colspan="3">
                联盟理事：<span class="red">(限90字以内)</span>已经输入<asp:Label runat="server" ID="ShowTextLength2">0</asp:Label>个字符<br>
                <FCKeditorV2:FCKeditor ID="txtContent2" runat="server" ToolbarSet="Basic" BasePath="~/fckeditor/"
                    Height="200">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="UserTableRow2" width="33%" colspan="3">
                联系方式：<span class="red">(限90字以内)</span>已经输入<asp:Label runat="server" ID="ShowTextLength3">0</asp:Label>个字符<br>
                <FCKeditorV2:FCKeditor ID="txtContent3" runat="server" ToolbarSet="Basic" BasePath="~/fckeditor/"
                    Height="200">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="UserTableRow1" colspan="3">
                <div align="left">
                    <asp:Button ID="btn_save" runat="server" Text="保 存" OnClick="btn_save_Click" />
                    &nbsp;&nbsp;
                </div>
            </td>
        </tr>
    </table>
    <br />
    </form>
</body>
</html>
